package com.example.fund.util;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class NumberUtil {

    public static double setScale(double d,int scale)
    {
        return new BigDecimal(d).setScale(scale, RoundingMode.HALF_UP).doubleValue();
    }
}
